package com.aw.jsr303.ejemplo001;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * User: gmc
 * Date: 30/06/2010
 */
public class Item {
    @OnlyLettersNotNull
    private String coProducto;

    @DecimalMin(value = "1")
    private BigDecimal precioUnitario;
    @Min(1)
    private int cantidad;

}
